#include "mainwindow.h"
#include <QLabel>
#include "dbus_install_deb_interface.h"
#include <QDebug>
mainwindow::mainwindow(QWidget *parent) : QMainWindow(parent)
{
    this->resize(300,300);
    QLabel *lable = new QLabel(this);
    lable->setGeometry(10,60,300,20);
    lable->show();

    com::redflag::install::dbus *dbus = new com::redflag::install::dbus(
                "com.redflag.install.dbus","/com/redflag/install/dbus",
                QDBusConnection::systemBus(),this
                );
    QString debname = "htop";
    dbus->installdeb(debname);

    qDebug()<<"debname:" <<debname;
    qDebug()<<"安装dbe包";

}
